<!DOCTYPE html>
<html lang="zh-CN">





<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/apple-touch-icon.png">
  <link rel="icon" type="image/png" href="/img/favicon.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="">
  <meta name="author" content="xu wen liu">
  <meta name="keywords" content="">
  <title>NeverGiveUpT</title>

  <link  rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/5.12.1/css/all.min.css" />
<link  rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/css/bootstrap.min.css" />
<link  rel="stylesheet" href="https://cdn.staticfile.org/mdbootstrap/4.13.0/css/mdb.min.css" />
<link  rel="stylesheet" href="https://cdn.staticfile.org/github-markdown-css/3.0.1/github-markdown.min.css" />

<link rel="stylesheet" href="//at.alicdn.com/t/font_1067060_qzomjdt8bmp.css">



  <link  rel="stylesheet" href="/lib/prettify/tomorrow-night-eighties.min.css" />

<link  rel="stylesheet" href="/css/main.css" />


  <link defer rel="stylesheet" href="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.css" />


<!-- 自定义样式保持在最底部 -->

  
<link rel="stylesheet" href="/css/custom.css">



<meta name="generator" content="Hexo 4.2.0"></head>


<body>
  <header style="height: 100vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/">&nbsp;<strong>NeverGiveUpT</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/">首页</a>
          </li>
        
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/archives/">归档</a>
          </li>
        
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/categories/">分类</a>
          </li>
        
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/tags/">标签</a>
          </li>
        
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/about/">关于</a>
          </li>
        
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/links/">友链</a>
          </li>
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="view intro-2" id="background" parallax=true
         style="background: url('/img/index.jpg') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask rgba-black-light flex-center">
          <div class="container text-center white-text fadeInUp">
            <span class="h2" id="subtitle">
              
            </span>

            
          </div>

          
            <div class="scroll-down-bar">
              <i class="fas fa-angle-down scroll-down-arrow"></i>
            </div>
          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      <div class="container nopadding-md">
        <div class="py-5 z-depth-3" id="board"
          style=margin-top:0>
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/05/15/markdown/" target="_blank">
          <img src="/img/markdown.jpg" srcset="/img/loading.gif" alt="Markdown语法"
               class="index-img img-fluid rounded index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 mx-auto index-info">
      <a href="/2020/05/15/markdown/">
        <p class="h4 index-header">Markdown语法</p>
      </a>

      <a href="/2020/05/15/markdown/">
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">Markdown语法1.标题
使用 # 号标记 

# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题
效果如下：
一级标题二级标题三级标题四级标题五级标题六级标题
使用 = 和 - 标记一级和二级标

我展示的是一级标题
=================

我展示的是二级标题
-----------------
效果如下：
我展示的是一级标题我展示的是二级标题2.格式
字体
  *斜体文本*
  _斜体文本_

  **粗体文本**
  __粗体文本__

  ***粗斜体文本***
  ___粗斜体文本___


效果如下：
</div>
        </div>
      </a>

      <div class="index-btm">
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-05-15&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/Markdown%E8%AF%AD%E6%B3%95/">Markdown语法</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/05/14/miniprogram/colorui/" target="_blank">
          <img src="/img/miniprogram/colorui.png" srcset="/img/loading.gif" alt="小程序UI库-colorUI"
               class="index-img img-fluid rounded index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 mx-auto index-info">
      <a href="/2020/05/14/miniprogram/colorui/">
        <p class="h4 index-header">小程序UI库-colorUI</p>
      </a>

      <a href="/2020/05/14/miniprogram/colorui/">
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">ColorUI是一个css库下载https://www.color-ui.com/
使用UniApp开发下载源码解压获得/Colorui-UniApp文件夹，复制目录下的 /colorui 文件夹到你的项目根目录App.vue 引入关键Css main.css icon.css
&lt;style&gt;
@import &quot;colorui/main.css&quot;;
@import &quot;colorui/icon.css&quot;;
@import &quot;app.css&quot;; /* 你的项目css */
....
&lt;/style&gt;
使用自定义导航</div>
        </div>
      </a>

      <div class="index-btm">
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-05-14&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/%E5%B0%8F%E7%A8%8B%E5%BA%8F/">小程序</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/05/13/js/opener/" target="_blank">
          <img src="/img/js.jpg" srcset="/img/loading.gif" alt="JavaScript 浏览器新开窗口的正确方式"
               class="index-img img-fluid rounded index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 mx-auto index-info">
      <a href="/2020/05/13/js/opener/">
        <p class="h4 index-header">JavaScript 浏览器新开窗口的正确方式</p>
      </a>

      <a href="/2020/05/13/js/opener/">
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">前端项目开发过程中，网页里的a标签默认在当前窗口跳转链接地址，如果需要在新窗口打开，需要给 a 标签添加一个target=&quot;_blank&quot;属性。 例：
&lt;a target=&quot;_blank&quot; href=&quot;https://weibo.com/&quot;&gt;打开微博页面&lt;/a&gt;
1.此操作有安全问题如果只是加上 target=“_blank&#39;，在打开新窗口之后，新页面可以通过 window.opener 来获取到来源页面的 window 对象，即使是跨域状态也一样。

某些属性的访问被拦截，是因为跨域安全策略的限制。但</div>
        </div>
      </a>

      <div class="index-btm">
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-05-13&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/JS/">JS</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/05/13/life/health/" target="_blank">
          <img src="/img/life/gouqi.jpg" srcset="/img/loading.gif" alt="养生之喝点什么"
               class="index-img img-fluid rounded index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 mx-auto index-info">
      <a href="/2020/05/13/life/health/">
        <p class="h4 index-header">养生之喝点什么</p>
      </a>

      <a href="/2020/05/13/life/health/">
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">养生之枸杞篇枸杞+

桂圆-安神入睡
红枣-健脾、护胃、养肝
黄芪[qi]-补肾、益精
菊花-养肝、排毒
山药-降血压、降血糖
斗龙芝-补肾、提高身体活力

</div>
        </div>
      </a>

      <div class="index-btm">
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-05-13&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E7%94%9F%E6%B4%BB/">生活</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/%E5%85%BB%E7%94%9F/">养生</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/05/12/react/interview-question/" target="_blank">
          <img src="/img/react/react.jpg" srcset="/img/loading.gif" alt="React面试题集锦"
               class="index-img img-fluid rounded index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 mx-auto index-info">
      <a href="/2020/05/12/react/interview-question/">
        <p class="h4 index-header">React面试题集锦</p>
      </a>

      <a href="/2020/05/12/react/interview-question/">
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">持续更新~~
1.redux中间件的原理是什么？
中间件是指action和store之间，用来改装dispatch原来的action是一个对象，那么通过redux-thunk这个中间件就可以将action改装成一个函数然后返回一个对象。


2.你会把数据统一放到redux中管理，还是共享数据放在redux中管理？应当是所有的数据都放到redux中管理。在react中存储数据有state，props，redux这三种方式。如果部分放在redux，部分放在state或者props里面，那么对于数据的维护和出现问题的排查是不利的。
3.componentWillReceiveProps的调用时机？</div>
        </div>
      </a>

      <div class="index-btm">
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-05-12&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/react/">react</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/05/11/react/hooks-next/" target="_blank">
          <img src="/img/react/hooks.jpg" srcset="/img/loading.gif" alt="React-hooks下"
               class="index-img img-fluid rounded index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 mx-auto index-info">
      <a href="/2020/05/11/react/hooks-next/">
        <p class="h4 index-header">React-hooks下</p>
      </a>

      <a href="/2020/05/11/react/hooks-next/">
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">1.useRef
保存引用值


useRef 跟 createRef 类似，都可以用来生成对 DOM 对象的引用。
useRef 返回的值传递给组件或者 DOM 的 ref 属性就可以通过 ref.current 值访问组件或真实的 DOM 节点，重点是组件也是可以访问到的，从而可以对 DOM 进行一些操作，比如监听事件等等。
useRef 的功能有点像类属性，在组件中记录一些值，并且这些值在稍后可以更改

import React, { useState, useRef } from &quot;react&quot;;
import ReactDOM from &quot;react-d</div>
        </div>
      </a>

      <div class="index-btm">
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-05-11&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/react/">react</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/05/10/react/hooks-prev/" target="_blank">
          <img src="/img/react/hooks.jpg" srcset="/img/loading.gif" alt="React-hooks上"
               class="index-img img-fluid rounded index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 mx-auto index-info">
      <a href="/2020/05/10/react/hooks-prev/">
        <p class="h4 index-header">React-hooks上</p>
      </a>

      <a href="/2020/05/10/react/hooks-prev/">
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">1.useState这个就太简单了，不多做介绍
2.useEffect函数组件能保存状态，但是对于异步请求，副作用的操作还是无能为力，所以 React 提供了 useEffect 来帮助开发者处理函数组件的副作用
import React, { useState, useEffect } from &quot;react&quot;;
import ReactDOM from &quot;react-dom&quot;;
let timer = null;

function App() {
  const [count, setCount] = useState(0);
  useEffec</div>
        </div>
      </a>

      <div class="index-btm">
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-05-10&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/react/">react</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/05/09/ts/iterators-generators/" target="_blank">
          <img src="/img/ts/ts.jpg" srcset="/img/loading.gif" alt="TS中的迭代器和生成器"
               class="index-img img-fluid rounded index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 mx-auto index-info">
      <a href="/2020/05/09/ts/iterators-generators/">
        <p class="h4 index-header">TS中的迭代器和生成器</p>
      </a>

      <a href="/2020/05/09/ts/iterators-generators/">
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">1.可迭代性当一个对象实现了Symbol.iterator属性时，我们认为它是可迭代的。 一些内置的类型如 Array，Map，Set，String，Int32Array，Uint32Array等都已经实现了各自的Symbol.iterator。 对象上的 Symbol.iterator函数负责返回供迭代的值。
2.for..of语句for..of会遍历可迭代的对象，调用对象上的Symbol.iterator方法。 下面是在数组上使用 for..of的简单例子：
let someArray = [1, &quot;aaa&quot;, false];

for (let entry of so</div>
        </div>
      </a>

      <div class="index-btm">
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-05-09&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/TS/">TS</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/05/08/life/reply/" target="_blank">
          <img src="/img/life/lianai.jpg" srcset="/img/loading.gif" alt="恋爱小技巧"
               class="index-img img-fluid rounded index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 mx-auto index-info">
      <a href="/2020/05/08/life/reply/">
        <p class="h4 index-header">恋爱小技巧</p>
      </a>

      <a href="/2020/05/08/life/reply/">
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">如何完美的回答女生的问题持续更新~~

问：在干嘛？
答：在等喜欢的人找我聊天


问：好无聊啊
答：谈恋爱吗？二缺一


问：我长得好难看啊
答：请尊重我的审美


问：睡了吗？

直接回复女人你还没有睡。这样可以体现出你是个直爽和爽快的男人，问什么答什么这通常是很多女人所喜欢的一种性格。女人半夜问你睡没睡肯定是有事想要和你讨论，你一句没睡就为接下来的聊天埋下了伏笔，女人会问你为什么不睡，而你可以反问女人。之后两人就会对没睡的原因进行深入地探讨。女人这么晚不睡一定是有心事，再加上深夜女人的心一般都比较脆弱，你就可以借和女人聊天的机会慢慢打开女人的心房，在深夜，合适的聊天方法会起到事半功倍的效</div>
        </div>
      </a>

      <div class="index-btm">
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-05-08&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E7%94%9F%E6%B4%BB/">生活</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/%E6%81%8B%E7%88%B1/">恋爱</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/05/08/ts/symbol/" target="_blank">
          <img src="/img/ts/ts.jpg" srcset="/img/loading.gif" alt="TS中的Symbol"
               class="index-img img-fluid rounded index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 mx-auto index-info">
      <a href="/2020/05/08/ts/symbol/">
        <p class="h4 index-header">TS中的Symbol</p>
      </a>

      <a href="/2020/05/08/ts/symbol/">
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">1.ES6新增基本数据类型
自ECMAScript 2015起，symbol成为了一种新的原生类型，表示独一无二的值。就像number和string一样。它是 JavaScript 语言的第七种数据类型，前六种是：undefined、null、布尔值（Boolean）、字符串（String）、数值（Number）、对象（Object）。symbol类型的值是通过Symbol构造函数创建的。

let sym1 = Symbol();
let sym2 = Symbol(&quot;key&quot;); // 可选的字符串key
注意，Symbol函数前不能使用new命令，否则会报错。这是因为</div>
        </div>
      </a>

      <div class="index-btm">
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-05-08&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E6%8A%80%E6%9C%AF/">技术</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/TS/">TS</a>&nbsp;
          
        
      </div>
    </div>
  </div>



  <nav aria-label="index posts navigation">
    <span class="pagination pg-blue justify-content-center mt-5" id="pagination">
      <span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><a class="extend next" rel="next" href="/page/2/"><i class="fas fa-angle-double-right"></i></a>
    </span>
  </nav>
  
  <script>
    for (ele of document.getElementById("pagination").getElementsByClassName("page-number")) {
      ele.href += '#board';
    }
  </script>



              </div>
            </div>
          </div>
        </div>
      </div>
    
  </main>

  
    <a class="z-depth-1" id="scroll-top-button" href="#" role="button">
      <i class="fa fa-chevron-up scroll-top-arrow" aria-hidden="true"></i>
    </a>
  

  
    <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
  

  

  

  <footer class="mt-5">
  <div class="text-center py-3">
    <div>
      <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><b>Hexo</b></a>
      <i class="iconfont icon-love"></i>
      <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"> <b>Fluid</b></a>
    </div>
    

    

    
  </div>
</footer>

<!-- SCRIPTS -->
<script  src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js" ></script>
<script  src="https://cdn.staticfile.org/popper.js/1.16.1/umd/popper.min.js" ></script>
<script  src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js" ></script>
<script  src="https://cdn.staticfile.org/mdbootstrap/4.13.0/js/mdb.min.js" ></script>
<script  src="/js/main.js" ></script>


  <script  src="/js/lazyload.js" ></script>










<!-- Plugins -->



  <script  src="https://cdn.staticfile.org/prettify/188.0.0/prettify.min.js" ></script>
  <script>
    $(document).ready(function () {
      $('pre').addClass('prettyprint  linenums');
      prettyPrint();
    })
  </script>



  <script  src="https://cdn.staticfile.org/typed.js/2.0.11/typed.min.js" ></script>
  <script>
    var typed = new Typed('#subtitle', {
      strings: [
        '  ',
        "There is a kind of call to eat together.&nbsp;",
      ],
      cursorChar: "_",
      typeSpeed: 70,
      loop: false,
    });
    typed.stop();
    $(document).ready(function () {
      $(".typed-cursor").addClass("h2");
      typed.start();
    });
  </script>



  <script  src="https://cdn.staticfile.org/anchor-js/4.2.2/anchor.min.js" ></script>
  <script>
    anchors.options = {
      placement: "right",
      visible: "hover",
      
    };
    var el = "h1,h2,h3,h4,h5,h6".split(",");
    var res = [];
    for (item of el) {
      res.push(".markdown-body > " + item)
    }
    anchors.add(res.join(", "))
  </script>



  <script  src="/js/local-search.js" ></script>
  <script>
    var path = "/local-search.xml";
    var inputArea = document.querySelector("#local-search-input");
    inputArea.onclick = function () {
      getSearchFile(path);
      this.onclick = null
    }
  </script>



  <script defer src="https://cdn.staticfile.org/fancybox/3.5.7/jquery.fancybox.min.js" ></script>
  <script>
    $("#post img:not(.no-zoom img, img[no-zoom])").each(
      function () {
        var element = document.createElement("a");
        $(element).attr("data-fancybox", "images");
        $(element).attr("href", $(this).attr("src"));
        $(this).wrap(element);
      }
    );
  </script>





  
  
    <script>
      !function (e, t, a) {
        function r() {
          for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x + "px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e].scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999");
          requestAnimationFrame(r)
        }

        function n() {
          var t = "function" == typeof e.onclick && e.onclick;
          e.onclick = function (e) {
            t && t(), o(e)
          }
        }

        function o(e) {
          var a = t.createElement("div");
          a.className = "heart", s.push({
            el: a,
            x: e.clientX - 5,
            y: e.clientY - 5,
            scale: 1,
            alpha: 1,
            color: c()
          }), t.body.appendChild(a)
        }

        function i(e) {
          var a = t.createElement("style");
          a.type = "text/css";
          try {
            a.appendChild(t.createTextNode(e))
          } catch (t) {
            a.styleSheet.cssText = e
          }
          t.getElementsByTagName("head")[0].appendChild(a)
        }

        function c() {
          return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"
        }

        var s = [];
        e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {
          setTimeout(e, 1e3 / 60)
        }, i(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"), n(), r()
      }(window, document);
    </script>
  








</body>
</html>
